package com.liyang.springcloud.service.impl;

import com.liyang.springcloud.dao.PaymentDao;
import com.liyang.springcloud.common.entities.Payment;
import com.liyang.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @BelongsProject: cloud-2024
 * @BelongsPackage: com.liyang.springcloud.service.impl
 * @Author: liyang
 * @CreateTime: 2023-12-19  19:54
 * @Description: 支付实现类
 * @Version: 1.0
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment selectById(Long id) {
        return paymentDao.selectById(id);
    }
}
